package com.tianxin.workbao.workBao.common;

public class URL {
    /**
     * 192.168.88.3:8084/WebAppServer/mobile/lineup/updatelineup.json?apptoken=f0f4307fcea2a9cb6046dd982d03b0bb
     */
    private static final String MAIN_HOST_BASE_URL = "http://180.130.175.254:8181";
    private static final String MAIN_HOST_DEVELOP_URL = "http://192.168.88.2:8181";
    private static final String YARD_HOST_BASE_URL = "";
    //public static final String DEVELOP_HOST_BASE_URL = "http://192.168.16.133:8084";
    public static final String DEVELOP_HOST_BASE_URL = "http://192.168.88.3:8084";

    //Organization
    private static final String organizationUrl = "/WebAppServer/mobile/user/getallorgaination.json";
    //User
    private static final String userUrl = "/WebAppServer/mobile/user/getalluser.json";
    private static String roleUrl = "/WebAppServer/mobile/user/getroles.json";
    private static String rolesByUseridUrl = "/WebAppServer/mobile/user/getrolebyuserid.json";
    private static String updateRoleUrl = "/WebAppServer/mobile/user/updaterole.json";
    private static String alertPwd = "/WebAppServer/mobile/user/alterpwd.json";
    //login
    private static final String userLoginUrl = "/WebAppServer/mobile/user/login.json";
    //lineUp
    private static final String lineupUrl = "/WebAppServer/mobile/lineup/getlineups.json";
    private static String saveLineUpUrl = "/WebAppServer/mobile/lineup/save.json";
    private static String checkLineUpUrl = "/WebAppServer/mobile/lineup/checkfree.json";

    //loaderUseUrl
    private static final String loaderUseUrl = "/WebAppServer/mobile/loaderuse/getall.json";
    //current user use loader
    private static final String currUseLoaderUrl = "/WebAppServer/mobile/loader/getcurruseloader.json";
    //use loader
    private static final String useLoaderUrl = "/WebAppServer/mobile/loader/useloader.json";
    //give up use loader
    private static final String giveUpUseLoaderUrl = "/WebAppServer/mobile/loader/giveupuseloader.json";
    //loader
    private static final String loaderUrl = "/WebAppServer/mobile/loader/getall.json";

    //get out bill by obnum
    private static final String getoutputbillbynumUrl = "/WebAppServer/mobile/outputbill/getoutputbillbynum.json";
    //coal
    private static final String coalUrl = "/WebAppServer/mobile/coal/getcoals.json";
    private static String coalFactoryUrl = "/WebAppServer/mobile/coal/getcoalfactorys.json";
    //car
    private static final String carUrl = "/WebAppServer/mobile/carinfor/getcars.json";
    private static final String carCpuUrl = "/WebAppServer/mobile/carinfor/getcarbycpu.json";
    private static final String carPlateNumberUrl = "/WebAppServer/mobile/carinfor/getcarbyplate.json";
    private static String carMoneyStatisticUrl = "/WebAppServer/mobile/carmoney/stastic.json";
    private static String indistinctCarUrl = "/WebAppServer/mobile/carinfor/getindistinct.json";
    private static String carFinanceUrl = "/WebAppServer/mobile/carinfor/getcarfiancebyplate.json";
    //customer
    private static String customerUrl = "/WebAppServer/mobile/customers/getallcustomers.json";
    private static String addressUrl = "/WebAppServer/mobile/customers/getaddresses.json";
    //test item
    private static String testItemUrl = "/WebAppServer/mobile/testietm/gettestietms.json";
    //statistics mobile charts
    private static String staticUrl = "/WebAppServer/mobile/statistics/getstatic.json";
    //output bill
    private static String outputUrl = "/WebAppServer/mobile/outputbill/getoutputs.json";
    private static String outNoOauthBillUrl = "/WebAppServer/mobile/outputbill/getnooauth.json";
    private static String outOauthUrl= "/WebAppServer/mobile/outputbill/oauth.json";
    //input bill
    private static String inputUrl = "/WebAppServer/mobile/inputbill/getinputs.json";
    private static String noSamplingUrl = "/WebAppServer/mobile/inputbill/getnosamplings.json";
    private static String inNoOauthBillUrl = "/WebAppServer/mobile/inputbill/getnooauth.json";
    private static String inOauthUrl= "/WebAppServer/mobile/inputbill/oauth.json";
    //Sampling
    private static String samplingUrl = "/WebAppServer/mobile/sampling/getsamplings.json";
    private static String saveSamplingUrl = "/WebAppServer/mobile/sampling/savesampling.json";
    private static String deleteSamplingUrl = "/WebAppServer/mobile/sampling/deletesampling.json";
    //fueldiary add oil record
    private static String fueldiaryUrl = "/WebAppServer/mobile/fueldiary/gefueldiarys.json";
    private static String saveFueldiaryUrl = "/WebAppServer/mobile/fueldiary/savefueldiary.json";
    private static String oauthFueldiaryUrl = "/WebAppServer/mobile/fueldiary/oauthfueldiary.json";
    private static String deleteFueldiaryUrl = "/WebAppServer/mobile/fueldiary/delete.json";

    //back bill
    private static String backBillUrl = "/WebAppServer/mobile/outputbill/getbyreceived.json";
    private static String saveBackBillUrl = "/WebAppServer/mobile/outputbill/savebackbill.json";
    private static String storageUrl = "/WebAppServer/mobile/storage/getdata.json";
    private static String oilPriceUrl = "/WebAppServer/mobile/storage/getprice.json";
    //test
    private static String testBillUrl = "/WebAppServer/mobile/test/gettests.json";
    private static String saveTestBillUrl = "/WebAppServer/mobile/test/savetest.json";
    private static String deleteTestBillUrl = "/WebAppServer/mobile/test/deletetest.json";
    //trans Contract
    private static String transContractUrl = "/WebAppServer/mobile/transcontract/getconstracts.json";
    private static String transPriceUrl = "/WebAppServer/mobile/transcontract/getprices.json";
    private static String saveTransContractUrl = "/WebAppServer/mobile/transcontract/save.json";
    private static String deleteTransContractUrl = "/WebAppServer/mobile/transcontract/delete.json";
    private static String oauthTransContractUrl = "/WebAppServer/mobile/transcontract/option.json";
    private static String saveTransPriceUrl = "/WebAppServer/mobile/transcontract/saveprice.json";
    // trans money calc
    private static String TmcUrl = "/WebAppServer/mobile/transcalc/gets.json";
    private static String carMoneyUrl = "/WebAppServer/mobile/carmoney/gets.json";
    private static String oauthTransferMoneycalcUrl = "/WebAppServer/mobile/transcalc/oauth.json";
    // contract
    private static String contractUrl = "/WebAppServer/mobile/contract/getconstracts.json";
    private static String oauthContractUrl = "/WebAppServer/mobile/contract/oauth.json";
    private static String constractStatisUrl = "/WebAppServer/mobile/contract/statistic.json";
    private static String contractCoalUrl = "/WebAppServer/mobile/contract/getctcoal.json";
    private static String saveContractCoalUrl = "/WebAppServer/mobile/contract/savectcoal.json";
    private static String coalPriceUrl = "/WebAppServer/mobile/contract/getcoalprice.json";
    private static String saveCoalPriceUrl = "/WebAppServer/mobile/contract/savecoalprice.json";

    private static String coalChemicalUrl = "/WebAppServer/mobile/contract/getcoalchemical.json";

    //money flow 煤款流水
    private static String moneyFlowUrl = "/WebAppServer/mobile/moneyflow/gets.json";
    //CMC
    private static String CMCUrl = "/WebAppServer/mobile/moneyflowcalc/gets.json";
    //total statistic
    private static String totalStatisticUrl = "/WebAppServer/mobile/contract/gettotalstatistic.json";
    //statistic
    private static String storageStatisticUrl = "/WebAppServer/mobile/statistic/getstoragestatistic.json";
    private static String waitStatisticUrl = "/WebAppServer/mobile/statistic/getwaitstatistic.json";
    private static String carFinanceStatisticUrl = "/WebAppServer/mobile/statistic/getcarfinancestatistic.json";
    private static String baseStatisticUrl = "/WebAppServer/mobile/statistic/getbasestatistic.json";
    private static String coalStatisticUrl = "/WebAppServer/mobile/statistic/getcoalstatistic.json";
    //apk
    private static String downloadApkUrl = "/WebAppServer/uploadfile/download.json";
    private static String newApkUrl = "/WebAppServer/mobile/appconfig/getnew.json";
    //transfer money
    private static String transferMoneyUrl = "/WebAppServer/mobile/transfermoney/gets.json";
    private static String oauthTransferMoneyUrl = "/WebAppServer/mobile/transfermoney/oauth.json";
    //wash report
    private static String WashReportUrl = "/WebAppServer/mobile/washreport/getreports.json";
    private static String washWorkUrl = "/WebAppServer/mobile/washreport/getdatas.json";
    private static String saveWashWorkUrl = "/WebAppServer/mobile/washreport/save.json";
    private static String deleteWashWorkUrl = "/WebAppServer/mobile/washreport/delete.json";
    //car add oil card
    private static String caraddoilcardUrl = "/WebAppServer/mobile/addoilcard/gets.json";
    private static String caraddoilcardOauthUrl = "/WebAppServer/mobile/addoilcard/oauth.json";



    public static String getDownloadApkUrl() {
        return getBaseUrl() + downloadApkUrl;
    }

    private static String getBaseUrl() {
        if (Constant.APP_DEBUG == 1) {
            return DEVELOP_HOST_BASE_URL;
        } else {
            if (Constant.SERVER_URL_TYPE == 0) {
                return YARD_HOST_BASE_URL;
            } else if (Constant.SERVER_URL_TYPE == 1) {
                return MAIN_HOST_BASE_URL;
            } else {
                return MAIN_HOST_DEVELOP_URL;
            }
        }
    }

    public static String getOrganizationUrl() {
        return getBaseUrl() + organizationUrl;
    }

    public static String getUserUrl() {
        return getBaseUrl() + userUrl;
    }

    public static String getUserLoginUrl() {
        return getBaseUrl() + userLoginUrl;
    }

    public static String getLineUpUrl() {
        return getBaseUrl() + lineupUrl;
    }

    public static String getLoaderUseUrl() {
        return getBaseUrl() + loaderUseUrl;
    }

    public static String getCurrUseLoaderUrl() {
        return getBaseUrl() + currUseLoaderUrl;
    }

    public static String getUseLoaderUrl() {
        return getBaseUrl() + useLoaderUrl;
    }

    public static String getGiveUpUseLoaderUrl() {
        return getBaseUrl() + giveUpUseLoaderUrl;
    }

    public static String getLoaderUrl() {
        return getBaseUrl() + loaderUrl;
    }

    public static String getOutPutBillByNumUrl() {
        return getBaseUrl() + getoutputbillbynumUrl;
    }

    public static String getCoalsUrl() {
        return getBaseUrl() + coalUrl;
    }

    public static String getCoalFactorysUrl() {
        return getBaseUrl() + coalFactoryUrl;
    }

    public static String getCarsUrl() {
        return getBaseUrl() + carUrl;
    }

    public static String getCarCpuUrl() {
        return getBaseUrl() + carCpuUrl;
    }

    public static String getCarPlateNumberUrl() {
        return getBaseUrl() + carPlateNumberUrl;
    }

    public static String getCustomerUrl() {
        return getBaseUrl() + customerUrl;
    }

    public static String getTestItemUrl() {
        return getBaseUrl() + testItemUrl;
    }

    public static String getStaticUrl() {
        return getBaseUrl() + staticUrl;
    }

    public static String getOutputBillsUrl() {
        return getBaseUrl() + outputUrl;
    }

    public static String getInputBillsUrl() {
        return getBaseUrl() + inputUrl;
    }

    public static String getSamplingUrl() {
        return getBaseUrl() + samplingUrl;
    }

    public static String getFueldiaryUrl() {
        return getBaseUrl() + fueldiaryUrl;
    }

    public static String getdeleteFueldiaryUrl() {
        return getBaseUrl() + deleteFueldiaryUrl;
    }

    public static String getBackBillUrl() {
        return getBaseUrl() + backBillUrl;
    }

    public static String getSaveBackBillUrl() {
        return getBaseUrl() + saveBackBillUrl;
    }

    public static String getStorageUrl() {
        return getBaseUrl() + storageUrl;
    }

    public static String getOilPriceUrl() {
        return getBaseUrl() + oilPriceUrl;
    }

    public static String getSaveFueldirayUrl() {
        return getBaseUrl() + saveFueldiaryUrl;
    }

    public static String getCarFianceUrl() {
        return getBaseUrl() + carFinanceUrl;
    }

    public static String getOauthFueldirayUrl() {
        return getBaseUrl() + oauthFueldiaryUrl;
    }

    public static String getIndistinctCarUrl() {
        return getBaseUrl() + indistinctCarUrl;
    }

    public static String getNoSamplingUrl() {
        return getBaseUrl() + noSamplingUrl;
    }

    public static String getSaveSamplingUrl() {
        return getBaseUrl() + saveSamplingUrl;
    }

    public static String getDeleteSamplingUrl() {
        return getBaseUrl() + deleteSamplingUrl;
    }

    public static String getTestUrl() {
        return getBaseUrl() + testBillUrl;
    }

    public static String getsaveTestUrl() {
        return getBaseUrl() + saveTestBillUrl;
    }

    public static String getDeleteTestUrl() {
        return getBaseUrl() + deleteTestBillUrl;
    }

    public static String getsaveLineUpUrl() {
        return getBaseUrl() + saveLineUpUrl;
    }

    public static String getcheckLineUpUrl() {
        return getBaseUrl() + checkLineUpUrl;
    }

    public static String getTransContractUrl() {
        return getBaseUrl() + transContractUrl;
    }

    public static String getTransPriceUrl() {
        return getBaseUrl() + transPriceUrl;
    }

    public static String getAddressUrl() {
        return getBaseUrl() + addressUrl;
    }

    public static String getSaveTransContractUrl() {
        return getBaseUrl() + saveTransContractUrl;
    }

    public static String getDeleteTransContractUrl() {
        return getBaseUrl() + deleteTransContractUrl;
    }

    public static String getOauthTransContractUrl() {
        return getBaseUrl() + oauthTransContractUrl;
    }

    public static String getContractUrl() {
        return getBaseUrl() + contractUrl;
    }

    public static String getOauthContractUrl() {
        return getBaseUrl() + oauthContractUrl;
    }

    public static String getSaveTransPriceUrl() {
        return getBaseUrl() + saveTransPriceUrl;
    }

    public static String getMoneyFlowUrl() {
        return getBaseUrl() + moneyFlowUrl;
    }

    public static String getCMCUrl() {
        return getBaseUrl() + CMCUrl;
    }

    public static String getContractstatisUrl() {
        return getBaseUrl() + constractStatisUrl;
    }

    public static String getTotalStatisticUrl() {
        return getBaseUrl() + totalStatisticUrl;
    }

    public static String getStorageStatisticUrl() {
        return getBaseUrl() + storageStatisticUrl;
    }

    public static String getWaitStatisticUrl() {
        return getBaseUrl() + waitStatisticUrl;
    }

    public static String getCarFinanceStatisticUrl() {
        return getBaseUrl() + carFinanceStatisticUrl;
    }

    public static String getBaseStatisticUrl() {
        return getBaseUrl() + baseStatisticUrl;
    }

    public static String getNewApkUrl() {
        return getBaseUrl() + newApkUrl;
    }

    public static String getTMCUrl() {
        return getBaseUrl() + TmcUrl;
    }

    public static String getCarMoneyUrl() {
        return getBaseUrl() + carMoneyUrl;
    }

    public static String getTransferMoneUrl() {
        return getBaseUrl() + transferMoneyUrl;
    }

    public static String getWashReportUrl() {
        return getBaseUrl() + WashReportUrl;
    }

    public static String getWashWorkUrl() {
        return getBaseUrl() + washWorkUrl;
    }

    public static String getSaveWashWorkUrl() {
        return getBaseUrl() + saveWashWorkUrl;
    }

    public static String getDeleteWashWorkUrl() {
        return getBaseUrl() + deleteWashWorkUrl;
    }

    public static String getRoleUrl() {
        return getBaseUrl() + roleUrl;
    }

    public static String getRolesByUseridUrl() {
        return getBaseUrl() + rolesByUseridUrl;
    }

    public static String getUpdateRoleUrl() {
        return getBaseUrl() + updateRoleUrl;
    }

    public static String getCoalStatisticUrl() {
        return getBaseUrl() + coalStatisticUrl;
    }

    public static String getOauthTransferMoneyUrl() {
        return getBaseUrl() + oauthTransferMoneyUrl;
    }

    public static String getAlertPwdUrl() {
        return getBaseUrl() + alertPwd;
    }

    public static String getCaraddoilcardUrl() {

        return getBaseUrl() + caraddoilcardUrl;
    }

    public static String getCaraddoilcardOauthUrl() {

        return getBaseUrl() + caraddoilcardOauthUrl;
    }

    public static String getOauthTransferMoneycalcUrl() {
        return getBaseUrl() + oauthTransferMoneycalcUrl;
    }

    public static String getCarMoneyStatisticUrl() {
        return getBaseUrl() + carMoneyStatisticUrl;
    }

    public static String getContractCoalUrl() {
        return getBaseUrl() + contractCoalUrl;
    }

    public static String getCoalPriceUrl() {
        return getBaseUrl() + coalPriceUrl;
    }

    public static String getCoalChemicalUrl() {
        return getBaseUrl() + coalChemicalUrl;
    }

    public static String getSaveCoalPriceUrl() {
        return getBaseUrl() + saveCoalPriceUrl;
    }

    public static String getSaveContractCoalUrl() {
        return getBaseUrl() + saveContractCoalUrl;
    }

    public static String getOutNoOauthBillUrl() {
        return getBaseUrl() + outNoOauthBillUrl;
    }

    public static String getInNoOauthBillUrl() {
        return getBaseUrl() + inNoOauthBillUrl;
    }

    public static String getOutOauthUrl() {
        return getBaseUrl() + outOauthUrl;
    }

    public static String getInOauthUrl() {
        return getBaseUrl() + inOauthUrl;
    }
}